﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.LowPriceHouse
{
    /// <summary>
    /// 低价房表
    /// </summary>
    public class LowPriceHouses : GeneralBase<int>
    {
        /// <summary>
        /// 老ID
        /// </summary>
        public int OldID { get; set; }
        /// <summary>
        /// 小区ID
        /// </summary>
        public int LowPriceHouseBuildingID { get; set; }
        ///// <summary>
        ///// 楼盘名称
        ///// </summary>
        //[StringLength(50)]
        //public string BuildingName { get; set; }
        ///// <summary>
        ///// 楼盘地址
        ///// </summary>
        //public string BuildingAddress { get; set; }
        /// <summary>
        /// 门牌号
        /// </summary>
        [StringLength(50)]
        public string HouseNumber { get; set; }
        /// <summary>
        /// 原价
        /// </summary>
        [Column(TypeName = "money")]
        public decimal CostPrice { get; set; }
        /// <summary>
        /// 底价
        /// </summary>
        [Column(TypeName = "money")]
        public decimal LowPrice { get; set; }
        /// <summary>
        /// 协议价
        /// </summary>
        [Column(TypeName = "money")]
        public decimal NegotiatedPrice { get; set; }
        /// <summary>
        /// 价格条件(字典)
        /// </summary>
        public string PriceCondition { get; set; }
        /// <summary>
        /// 手续费
        /// </summary>
        public string Poundage { get; set; }
        /// <summary>
        /// 佣金说明
        /// </summary>
        public string Brokerage { get; set; }
        /// <summary>
        /// 佣金数额
        /// </summary>
        [Column(TypeName = "money")]
        public decimal BrokerageAmount { get; set; }
        /// <summary>
        /// 带看佣金
        /// </summary>
        public string BandSawBrokerage { get; set; }
        /// <summary>
        /// 佣金帐期
        /// </summary>
        public string CommissionAccount { get; set; }
        /// <summary>
        /// 奖励说明
        /// </summary>
        public string AwardDescription { get; set; }
        /// <summary>
        /// 规则
        /// </summary>
        public string Rules { get; set; }
        /// <summary>
        /// 能否贷款
        /// </summary>
        public int IsLoan { get; set; }
        /// <summary>
        /// 贷款规则
        /// </summary>
        public string LoanRules { get; set; }
        /// <summary>
        /// 首付比例
        /// </summary>
        [Column(TypeName = "money")]
        public decimal DownPaymentRate { get; set; }
        /// <summary>
        /// 建筑面积
        /// </summary>
        [Column(TypeName = "money")]
        public decimal Area { get; set; }
        /// <summary>
        /// 使用面积
        /// </summary>
        [Column(TypeName = "money")]
        public decimal UseArea { get; set; }
        /// <summary>
        /// 户型
        /// </summary>
        [StringLength(50)]
        public string HouseType { get; set; }
        /// <summary>
        /// 户型说明
        /// </summary>
        public string HouseTypeRemark { get; set; }
        /// <summary>
        /// 室数
        /// </summary>
        public int RoomNumber { get; set; }
        /// <summary>
        /// 厅数
        /// </summary>
        public int HallNumber { get; set; }
        /// <summary>
        /// 卫生间数
        /// </summary>
        public int ToiletNumber { get; set; }
        /// <summary>
        /// 厨房数
        /// </summary>
        public int CookNumber { get; set; }
        /// <summary>
        /// 阳台数
        /// </summary>
        public int BalconyNumber { get; set; }
        /// <summary>
        /// 设施
        /// </summary>
        public string Installation { get; set; }
        /// <summary>
        /// 性质(字典)
        /// </summary>
        public string Nature { get; set; }
        /// <summary>
        /// 住宅类别(字典选)
        /// </summary>
        public string ResidenceType { get; set; }
        /// <summary>
        /// 房屋类型(字典选)
        /// </summary>
        public string BuildingsType { get; set; }
        /// <summary>
        /// 建筑结构
        /// </summary>
        [StringLength(50)]
        public string BuildingClass { get; set; }
        /// <summary>
        /// 装修状况(字典)
        /// </summary>
        [StringLength(50)]
        public string DecorationCondition { get; set; }
        /// <summary>
        /// 产权年限
        /// </summary>
        [StringLength(50)]
        public string PropertyRight { get; set; }
        /// <summary>
        /// 产权类型
        /// </summary>
        [StringLength(50)]
        public string PropertyType { get; set; }
        /// <summary>
        /// 建造年代
        /// </summary>
        [StringLength(50)]
        public string CreateYear { get; set; }
        /// <summary>
        /// 楼层
        /// </summary>
        public int Storey { get; set; }
        /// <summary>
        /// 总楼层
        /// </summary>
        public int TotalStorey { get; set; }
        /// <summary>
        /// 朝向(字典选)
        /// </summary>
        public string Orientations { get; set; }
        /// <summary>
        /// 星标
        /// </summary>
        public string StarTarget { get; set; }
        /// <summary>
        /// 星标备注
        /// </summary>
        public string StarTargetRemark { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int ShowIndex { get; set; }
        /// <summary>
        /// 状态 0下线 1在售 2已预订 3已出售
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 代理ID
        /// </summary>
        public int AgentID { get; set; }
        /// <summary>
        /// 提供人员
        /// </summary>
        public int MediumOfCommunicationStaffID { get; set; }
        /// <summary>
        /// 维护人员
        /// </summary>
        public int StationedStaffID { get; set; }
        /// <summary>
        /// 房主
        /// </summary>
        public int OwnerID { get; set; }
        /// <summary>
        /// 更名期限
        /// </summary>
        public string ReNameDeadline { get; set; }
        /// <summary>
        /// 类型  1住宅  2旅游地产  3门市   4商铺
        /// </summary>
        public int LowHouseType { get; set; }
        /// <summary>
        /// 分组  1,低价房  2共享房   3低价备用    4共享备用
        /// </summary>
        public int GroupID { get; set; }
        /// <summary>
        /// 上线日期
        /// </summary>
        public DateTime UpTime { get; set; }
    }
}
